<template>
  <div id="app">
    <router-view/>
    <sys_footer v-if="show"></sys_footer>
  </div>
</template>

<script>
  import sys_footer from "@/components/footer";
  
  export default {
    components: {
      sys_footer
    },
    data() {
      return {
        "path": "",
        "show": true
      }
    },
    methods: {},
    mounted() {
      this.path = this.$route.path;
    },
    watch: {
      $route(to, from) {
        this.path = to.path
      },
      path(to, from) {
        if (to == "/info" || to == "/login") {
          this.show = false
        } else {
          this.show = true
        }
      }
    }
  
  }
  </script>

<style>

</style>
